﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmGrupoModificar.aspx.cs" Inherits="Crosland.Automotriz.Web.Seguridad.wFrmGrupoModificar" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTreeView" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxTreeList.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxTreeList" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">

 <script type="text/javascript">
     function soloLetras(e) {
         key = e.keyCode || e.which;
         tecla = String.fromCharCode(key).toLowerCase();
         letras = " áéíóúabcdefghijklmnñopqrstuvwxyz";
         especiales = [];
         tecla_especial = false
         for (var i in especiales) {
             if (key == especiales[i]) {
                 tecla_especial = true;
                 break;
             }
         }

         if (letras.indexOf(tecla) == -1 && !tecla_especial) {
             return false;
         }
     }
</script>
<script type="text/javascript">
    function ShowOK() {
        popupOK.Show();
    }
    function ShowActualizar() {
        popupmsj.Show();
    }


    </script>
    <script type="text/javascript">


        function pageLoad() {

            var control = document.getElementById('ctl00_cphMain_hfIndicador');
            cambiarImagenHeader();

            if (control.value == 'S') {
                $find('<%= ((AjaxControlToolkit.CollapsiblePanelExtender)this.Master.FindControl("cpeMenuGeneral")).BehaviorID %>')._doClose();

                control.value = 'N';
            }


        }

                

                
               

</script>

          <asp:UpdatePanel runat="server">
          
          <ContentTemplate>

    <div class="main-header" style="width:100%;">
            <div class="main-titulo">Actualizar Grupos</div>           
          </div> 

<asp:HiddenField ID="hfIndicador" runat="server" Value="S" /> 
          
          


<div class="content-form">  

  <table>
<tr>
<td>
    <dx:ASPxButton ID="btnGrabar" runat="server" Text="Grabar" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        onclick="btnGrabar_Click">
    </dx:ASPxButton>

</td>
<td>
    <dx:ASPxButton ID="btnLimpiar" runat="server" Text="Limpiar" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        onclick="btnLimpiar_Click">
    </dx:ASPxButton>

</td>
<td>
    <dx:ASPxButton ID="btnSalir" runat="server" Text="Salir" 
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
        CssPostfix="Office2010Blue" 
        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
        onclick="btnSalir_Click">
    </dx:ASPxButton>

</td>

</tr>

</table>   

     
     
     <div class="content-tree">
     
     

         <dx:ASPxRoundPanel ID="RPDatosGenerales" runat="server" Width="100%" 
             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
             CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
             GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
             HeaderText="Datos Generales" 
             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
             <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
                 PaddingTop="10px" />
<ContentPaddings PaddingLeft="9px" PaddingTop="10px" PaddingRight="11px" 
                 PaddingBottom="10px"></ContentPaddings>

             <HeaderStyle>
             <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
                 PaddingTop="3px" />
<Paddings PaddingLeft="9px" PaddingTop="3px" PaddingRight="11px" PaddingBottom="6px"></Paddings>
             </HeaderStyle>
             <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">

<table width="100%">
<tr>
<td>

Codigo grupo:

</td>
<td>

    <dx:ASPxTextBox ID="txtCodigoGrupo" runat="server" Width="100%" 
        ClientEnabled="False">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
    </dx:ASPxTextBox>

</td>

</tr>
<tr>
<td>
Nombre grupo:

</td>
<td>
    <dx:ASPxTextBox ID="txtNombreGrupo" runat="server" onkeypress="return soloLetras(event)" Width="100%">

    </dx:ASPxTextBox>

</td>
</tr>
<tr>
<td>
Descripción:

</td>
<td>
    <dx:ASPxTextBox ID="txtDscGrupo" runat="server" onkeypress="return soloLetras(event)" Width="100%">
    </dx:ASPxTextBox>

</td>

</tr>
<tr>
<td>
Estado:

</td>
<td>
 

    <dx:ASPxComboBox ID="cboEstado" runat="server" SelectedIndex="0">
        <Items>
            <dx:ListEditItem Selected="True" Text="Seleccione" />
            <dx:ListEditItem Text="Activo" Value="Activo" />
            <dx:ListEditItem Text="Inactivo" Value="Inactivo" />
        </Items>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
    </dx:ASPxComboBox>

</td>
<td>
    <dx:ASPxTextBox ID="txtUserCreacion" runat="server" Width="1px" 
        ClientVisible="False">
    </dx:ASPxTextBox>

</td>
</tr>


</table>



                 </dx:PanelContent>
</PanelCollection>
         </dx:ASPxRoundPanel>






     </div>

     <div class="formulario-opcion"> 
    
   <table>
   <tr>
   <td>
   
   



       &nbsp;</td>
  <td>
  

      <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="200px" 
          CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
          CssPostfix="Office2010Blue" EnableDefaultAppearance="False" 
          GroupBoxCaptionOffsetX="6px" GroupBoxCaptionOffsetY="-19px" 
          HeaderText="Accesos del grupo" 
          SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
          <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" 
              PaddingTop="10px" />
          <HeaderStyle>
          <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" 
              PaddingTop="3px" />
          </HeaderStyle>
          <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">

 <asp:TreeView ID="tvOpciones" runat="server" ShowCheckBoxes="All">                   
                    </asp:TreeView>

</dx:PanelContent>
</PanelCollection>
      </dx:ASPxRoundPanel>
     
  
     </td>
   
   </tr>

   
   </table>





     
     
     </div>



    
    
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />           
</div>
<dx:ASPxPopupControl ID="popupOK" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupOK" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
             Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl4" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel5" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent5" runat="server">
                        <table align="center">
                        <tr>
                        <td align="center">
                        Se actualizó el grupo correctamente !</td>
                        </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                            </tr>
                        <tr>
                        <td align="center">
                        
                            <dx:ASPxButton ID="ASPxButton8" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupOK.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>
                <dx:ASPxPopupControl ID="popupmsj" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupmsj" CloseAction="None" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
<Paddings Padding="0px"></Paddings>
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
<BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px"></BorderBottom>
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
<Paddings PaddingLeft="10px" PaddingTop="4px" PaddingRight="4px" PaddingBottom="4px"></Paddings>
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="Panelpopup" runat="server">
                        <table align="center">
                        <tr>
                        <td colspan="2">
                        
                            <dx:ASPxLabel ID="lblmsj" runat="server">
                            </dx:ASPxLabel>
                        
                        
                        
                        </td>
                        
                        </tr>
                            <tr>
                                <td colspan="2">
                                    &nbsp;</td>
                            </tr>
                        
                        </table>
                        <table align="center">
                        <tr>
                        <td align="center" style="width: 215px">
                        
                            <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
<ClientSideEvents Click="function(s, e) {
	popupmsj.Hide();
}"/>
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        </table>



                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>


 </ContentTemplate>

          </asp:UpdatePanel>
</asp:Content>
